package org.sokula.sun.service.meta;


import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * 
 * @author dong.yaojd
 * 
 * @version $Id: $
 */
@SuppressWarnings("unchecked")
public class ExceptionInfo {

	private Class type;
	
	private String typeName;

	public Class getType() {
		return type;
	}

	public void setType(Class type) {
		this.type = type;
		this.typeName = this.type.getName();
	}

	public String getTypeName() {
		return typeName;
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this).append("type", this.type).append(
				"typeName", this.typeName).toString();
	}

}
